import 'package:flutter/material.dart';

void main() {
  runApp(const EntryFragment());
}

class EntryFragment extends StatelessWidget {
  const EntryFragment() : super();

  @override
  Widget build(BuildContext context) {
    return _fragmentWeidgt(context);
  }

  Widget _fragmentWeidgt(BuildContext context) {
    return MaterialApp(
      theme: new ThemeData(
        primaryColor: Colors.red,
      ),
      title: 'demo',
      home: new Scaffold(
        body: new Column(
          children: [
            Container(
                child: Text('我是标题！！！！'),
                padding: EdgeInsets.symmetric(horizontal: 10),
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(12),
                  border: Border.all(
                    color: Colors.blue,
                    width: 2,
                  ),
                )),
            Container(
              child: Image.network(
                'https://ss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/exp/w=500/sign=e3bb7f5ed262853592e0d221a0ee76f2/18d8bc3eb13533fafa609682afd3fd1f40345b43.jpg',
              ),
            ),
            Container(
              child: Text('我是这个是图片的优秀描述，测试下下给文本设置一点点属性呗'),
            ),
            Row(
              children: [
                Container(
                  child: Text(
                    '优惠',
                    style: TextStyle(
                        color: Colors.black45,
                        fontSize: 14,
                        fontWeight: FontWeight.normal),
                  ),
                ),
                Container(
                  child: Text(
                    '199',
                    style: TextStyle(
                        color: Colors.red,
                        fontSize: 18,
                        fontWeight: FontWeight.bold),
                  ),
                ),
                Container(
                  child: Text(
                    '元',
                    style: TextStyle(
                        color: Colors.black45,
                        fontSize: 14,
                        fontWeight: FontWeight.normal),
                  ),
                )
              ],
            )
          ],
        ),
      ),
    );
  }
}
